package com.cskaoyan.demo7.service;

import com.cskaoyan.demo7.bean.model.MarketUser;
import com.cskaoyan.demo7.mapper.MarketUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description：
 * @Author：BLUEBLANK
 * @Date：2024/4/23 18:28
 */

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private MarketUserMapper marketUserMapper;
    @Override
    public MarketUser queryById(Integer userId) {
        MarketUser marketUser = marketUserMapper.selectByPrimaryKey(userId);
        if (marketUser!= null) {
            return marketUser;
        }
        return null;
    }
}
